<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../css/register.css">
</head>
<body>
    <header>
        <main>
            <div class="logo">
                <div class="re-logo-img">
                    <a href="#">
                        <img src="https://x.dscmall.cn/storage/images/common/user_login_logo.png" alt="" width="159px" height="57px">
                    </a>
                </div>
                <div class="re-logo-span">
                    <b>国内首款B2B2C2C2电商生态系统</b>
                </div>
            </div>
            <div class="header-href">
                <span>已注册可<a href="#" class="jump">在此登录</a></span>
            </div>
        </main>
    </header>
    <div class="banner">
        <main>
            <div class="banner-left">
                <img width="400" height="324" src="https://x.dscmall.cn/storage/data/afficheimg/1488939821671881226.jpg">
            </div>
            <div class="register-form">
                <div class="form form-other">
                    <form method="post" name="formUser">
                        <div class="item" id="phone_yz">
                            <div class="item-label">手 机 号 码</div>
                            <div class="item-info">
                                <input type="text" name="mobile_phone" id="mobile_phone" class="text" placeholder="请输入手机号" value="" autocomplete="off" aria-required="true" pattern="^(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\d{8}$">
                            </div>
                            <div class="input-tip"><label id="mobile_notice"></label></div>
                        </div>
                        <div class="item">
                            <div class="item-label">验　证　码</div>
                            <div class="item-info">
                                <input type="text" id="captcha" name="captcha" class="text text-2 fl" placeholder="请输入图片验证码" value="" autocomplete="off">
                                <img src="https://x.dscmall.cn/captcha_verify.php?captcha=is_register_phone&256035756" class="captcha_img fl" onclick="this.src='captcha_verify.php?captcha=is_register_phone&amp;'+Math.random()">
                            </div>
                            <div class="input-tip"><label id="captcha_notice"></label></div>
                        </div>
                        <div class="item" id="code_mobile">
                            <div class="item-label">手机验证码</div>
                            <div class="item-info">
                                <input type="text" id="sms" name="mobile_code" class="text text-2" placeholder="请输入短信验证码" value="" autocomplete="off">
                                <a href="javascript:sendSms();" id="zphone" class="sms-btn">获取验证码</a>
                            </div>
                            <div class="input-tip"><label id="phone_notice"></label></div>
                        </div>
                        <div class="item">
                            <div class="item-label">设 置 密 码</div>
                            <div class="item-info">
                                <input type="password" name="password" id="pwd" class="text" placeholder="请输入密码" value="" autocomplete="off">
                            </div>
                            <div class="input-tip"></div>
                        </div>
                        <div class="item">
                            <div class="item-label">确 认 密 码</div>
                            <div class="item-info">
                                <input type="password" name="confirm_password" id="pwdRepeat" class="text" placeholder="请再次确认密码" value="" autocomplete="off">
                            </div>
                            <div class="input-tip"></div>
                        </div>
                        <div class="item item2">
                            <div class="item-checkbox">
                                <input type="checkbox" id="clause2" class="ui-solid-checkbox" checked="checked" value="1" name="mobileagreement">
                                <label class="ui-solid-label" for="clause2">我已阅读并同意<a href="https://x.dscmall.cn/article-82.html" class="ftx-05" target="_blank">《大商创用户注册协议》</a></label>
                            </div>
                            <div class="input-tip"></div>
                        </div>
                        <div class="item item2 item-button">
                            <input type="submit" id="registsubmit" name="Submit" maxlength="8" class="btn sc-redBg-btn" value="立即注册">
                        </div>
                    <input type="hidden" name="_token" value="5NBi5stBCP8HcuT27pGsKEeDHSY1dNyIw6m2nAc3"> </form>
                </div>
            </div>
        </main>
    </div>
    <footer>
        <div class="w w1200">
            <p class="footer-ecscinfo pb10">
                <a href="https://x.dscmall.cn/">首页 </a>|
                <a href="https://x.dscmall.cn/article-2.html"> 隐私保护 </a>|
                <a href="https://x.dscmall.cn/article-4.html"> 联系我们 </a>|
                <a href="https://x.dscmall.cn/article-1.html"> 免责条款 </a>|
                <a href="https://x.dscmall.cn/article-5.html"> 公司简介 </a>|
                <a href="https://x.dscmall.cn/merchants.html" target="_blank"> 商家入驻 </a>|
                <a href="https://x.dscmall.cn/wholesale_apply.php" target="_blank"> 供应商入驻 </a>|
                <a href="https://x.dscmall.cn/message.html"> 意见反馈 </a>
            </p>
            <p class="footer-otherlink">
                <a href="https://www.dscmall.cn/" target="_blank" title="b2b2c">b2b2c</a>|
                <a href="https://www.dscmall.cn/" target="_blank" title="多用户商城系统">多用户商城系统</a>|
                <a href="https://www.dscmall.cn/" target="_blank" title="商城系统">商城系统</a>|
                <a href="https://www.ecjia.com/" target="_blank" title="ecjia新零售">ecjia新零售</a>
            </p>
            <p class="copyright_info">ICP备案证书号:<a href="http://beian.miit.gov.cn/" target="_blank">沪ICP备14029880号-5</a> </p>
            <p><a href="https://x.dscmall.cn" target="_blank">版权所有 © 2005-2021 大商创，并保留所有权利。POWERED BY DSCMALL</a></p>
        </div>
    </footer>
    <script src="../js/jquery-3.6.3.js"></script>
    <script>
        $(document).ready(function(){
            var mobelyz = $('#phone_yz').children('.input-tip').children('#mobile_notice');
            console.log(mobelyz);
            var phoneinfo = $('#phone_yz').children('.item-info').children('input')
            var form_e = $('form');
            console.log(form_e);
            console.log(phoneinfo)
            form_e.click(function(){
                phoneinfo.focus(function(){
                    mobelyz.text("");
                })
                phoneinfo.blur(function(){
                    let exp = /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/;
                    if(($(this).val()!=='')&&(!exp.test($(this).val()))){
                        mobelyz.text('手机号码不是一个有效号码')
                    }
                });
            })
            
        })
    </script>
</body>
</html>